// 调用第三方模块
// 比如调用了 axios
import axios from 'axios'
interface User {
    name: string,
    age:number
}

export async function doubleUserAge() {
    // const user:User = await axios("/user/1")
    const user:User = await axios.get("/user/1")
    return user.age * 2
}